package com.flashextended.apps.logomaker.singleton
{
	public class Fonts
	{
		private static var fonts:Fonts;
		
		public function Fonts()
		{
		}
		
		public static function getInstance():Fonts
		{
			if(fonts==null)
			{
				fonts = new Fonts();
			}
			return fonts;
		}
		/*
		//arial
	    [Embed(source="../assets/fonts/arial/ARIAL.TTF", fontFamily="ArialNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var arial_normal:Class;
	    [Embed(source="../assets/fonts/arial/ARIALBD.TTF", fontFamily="ArialBold",
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var arial_bold:Class;
	    [Embed(source="../assets/fonts/arial/ARIALI.TTF", fontFamily="ArialItalic",
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var arial_italic:Class;
	    [Embed(source="../assets/fonts/arial/ARIALBI.TTF", fontFamily="ArialBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var arial_bold_italic:Class;
	   


	   	//Candara
	    [Embed(source="../assets/fonts/candara/CANDARA.TTF", fontFamily="CandaraNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var candara_normal:Class;
	    [Embed(source="../assets/fonts/candara/CANDARAB.TTF", fontFamily="CandaraBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var candara_bold:Class;
	    [Embed(source="../assets/fonts/candara/CANDARAI.TTF", fontFamily="CandaraItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var candara_italic:Class;
	    [Embed(source="../assets/fonts/candara/CANDARAZ.TTF", fontFamily="CandaraBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var candara_bold_italic:Class;
	   		   	
	   	//Courier
	    [Embed(source="../assets/fonts/courier/COUR.TTF", fontFamily="CourierNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var courier_normal:Class;
	    [Embed(source="../assets/fonts/courier/COURBD.TTF", fontFamily="CourierBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var courier_bold:Class;
	    [Embed(source="../assets/fonts/courier/COURI.TTF", fontFamily="CourierItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var courier_italic:Class;
	    [Embed(source="../assets/fonts/courier/COURBI.TTF", fontFamily="CourierBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var courier_bold_italic:Class;
	   	
	   	//Georgia
	    [Embed(source="../assets/fonts/georgia/GEORGIA.TTF", fontFamily="GeorgiaNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var georgia_normal:Class;
	    [Embed(source="../assets/fonts/georgia/GEORGIAB.TTF", fontFamily="GeorgiaBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var georgia_bold:Class;
	    [Embed(source="../assets/fonts/georgia/GEORGIAI.TTF", fontFamily="GeorgiaItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var georgia_italic:Class;
	    [Embed(source="../assets/fonts/georgia/GEORGIAZ.TTF", fontFamily="GeorgiaBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var georgia_bold_italic:Class;
	   	
	   	//Trebuchet
	    [Embed(source="../assets/fonts/trebuchet/TREBUC.TTF", fontFamily="TrebuchetNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_normal:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCBD.TTF", fontFamily="TrebuchetBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_bold:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCIT.TTF", fontFamily="TrebuchetItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_italic:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCBI.TTF", fontFamily="TrebuchetBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_bold_italic:Class;
	   	
	   	//Verdana
	    [Embed(source="../assets/fonts/verdana/VERDANA.TTF", fontFamily="VerdanaNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_normal:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAB.TTF", fontFamily="VerdanaBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_bold:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAI.TTF", fontFamily="VerdanaItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_italic:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAZ.TTF", fontFamily="VerdanaBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_bold_italic:Class;	   	
		*/
		
/*   	
	   	//Times New Roman
	    [Embed(source="../assets/fonts/timesnewroman/TIMES.TTF", fontFamily="TimesNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var times_normal:Class;
	    [Embed(source="../assets/fonts/timesnewroman/TIMESBD.TTF", fontFamily="TimesBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var times_bold:Class;
	    [Embed(source="../assets/fonts/timesnewroman/TIMESI.TTF", fontFamily="TimesItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var times_italic:Class;
	    [Embed(source="../assets/fonts/timesnewroman/TIMESBI.TTF", fontFamily="TimesBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var times_bold_italic:Class;
	   	
	   	//Trebuchet
	    [Embed(source="../assets/fonts/trebuchet/TREBUC.TTF", fontFamily="TrebuchetNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_normal:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCBD.TTF", fontFamily="TrebuchetBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_bold:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCIT.TTF", fontFamily="TrebuchetItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_italic:Class;
	    [Embed(source="../assets/fonts/trebuchet/TREBUCBI.TTF", fontFamily="TrebuchetBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var trebuchet_bold_italic:Class;
	   	
	   	//Verdana
	    [Embed(source="../assets/fonts/verdana/VERDANA.TTF", fontFamily="VerdanaNormal",
	    fontWeight= "normal", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_normal:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAB.TTF", fontFamily="VerdanaBold", 
	    fontWeight= "bold", fontStyle = "normal", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_bold:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAI.TTF", fontFamily="VerdanaItalic", 
	    fontWeight= "normal", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_italic:Class;
	    [Embed(source="../assets/fonts/verdana/VERDANAZ.TTF", fontFamily="VerdanaBoldItalic", 
	    fontWeight= "bold", fontStyle = "italic", advancedAntiAliasing = true, mimeType="application/x-font-truetype", unicodeRange="englishRange")] 
	   	public static var verdana_bold_italic:Class;

*/		   		   		   		   		   	
	   	
	   	
		public function getFontsNames():Array
		{
			var a:Array = new Array();
			a[0] = {label:"Arial"};
			a[1] = {label:"Candara"};
			a[2] = {label:"Courier"};
			a[3] = {label:"Georgia"};
			//a[4] = {label:"Times New Roman"};
			a[4] = {label:"Trebuchet"};
			a[5] = {label:"Verdana"};
			return a;
		}
		
		private var holdFonts:Array = ["ArialNormal", "CandaraNormal", "CourierNormal", "GeorgiaNormal", "TrebuchetNormal", "VerdanaNormal"];
		private var holdFontsBold:Array = ["ArialBold", "CandaraBold", "CourierBold", "GeorgiaBold", "TrebuchetBold", "VerdanaBold"];
		private var holdFontsItalic:Array = ["ArialItalic", "CandaraItalic", "CourierItalic", "GeorgiaItalic", "TrebuchetItalic", "VerdanaItalic"];
		private var holdFontsBoldItalic:Array = ["ArialBoldItalic", "CandaraBoldItalic", "CourierBoldItalic", "GeorgiaBoldItalic", "TrebuchetBoldItalic", "VerdanaBoldItalic"];
		
				
		public function getembededfont(fontNo:int):String
		{
			return holdFonts[fontNo];
		}
		public function getembededfontBold(fontNo:int):String
		{
			return holdFontsBold[fontNo];
		}
		public function getembededfontItalic(fontNo:int):String
		{
			return holdFontsItalic[fontNo];
		}
		public function getembededfontBoldItalic(fontNo:int):String
		{
			return holdFontsBoldItalic[fontNo];
		}		   		

	}
}